/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Servidor;

import java.net.InetAddress;

/**
 *
 * @author Douglas
 */
public class User {
      private String login;
    private String senha;
    private InetAddress ip;
    private boolean online;

    public User(String login, String senha) {
        this.login = login;
        this.senha = senha;
        online = false;
    }
    
    public User(String login, String senha, InetAddress ip) {
        this.login = login;
        this.senha = senha;
        this.ip = ip;
        online = false;
    }
    
    public String getLogin() {
        return login;
    }

    public void setLogin(String Login) {
        this.login = Login;
    }

    public String getSenha() {
        return senha;
    }

    public void setSenha(String senha) {
        this.senha = senha;
    }
 
    public InetAddress getIp() {
        return ip;
    }

    public void setIp(InetAddress ip) {
        this.ip = ip;
    }
         
    public void setOnline(boolean v){
        online = v;
    }

    public boolean isOnline() {
        return online;
    }   
}
